package com.java.sample;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * Created by lzx on 16/7/23.
 */
@Component
public class AsyncClass {

    @Async
    public void async() throws InterruptedException {
        Thread.sleep(3000);
        System.out.println("async finished");
    }
}
